package itheima.d09;

import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<String> list =new ArrayList<>();
        list.add("李易峰");
        list.add("吴亦凡");
        list.add("财神");
        list.add("王力宏");

        System.out.println(list);

        list.add(2,"周杰伦");
        System.out.println("添加后"+list);

        list.remove(4);

        System.out.println("删除后"+list);

        System.out.println("获取位置3的数据："+list.get(2));

        list.set(0,"东南亚李易峰");
        System.out.println("修改后"+list);

    }
}
